package com.jackchan.homework.sysw.entity;

import com.jackchan.homework.common.IdEntity;

import javax.persistence.*;

/**
 * Created by ch-hui on 15/12/26.
 */
@Entity
@Table(name = "t_nutrition_vita")
public class NutritionVita extends IdEntity {

    private Material material;

    private Float na;

    private Float cl;

    private Float mg;

    private Float k;

    private Float fe;

    private Float cu;

    private Float mn;

    private Float zn;

    private Float se;

    private Float ve;

    private Float vb1;

    private Float vb2;

    private Float fansuan;

    private Float yansuan;

    private Float sws;

    private Float yesuan;

    private Float danjian;

    private Float b6;

    private Float b12;

    private Float yayousuan;


    @ManyToOne
    @JoinColumn(name = "material_id", referencedColumnName = "id")
    public Material getMaterial() {
        return material;
    }

    public void setMaterial(Material material) {
        this.material = material;
    }

    @Column(name = "na")
    public Float getNa() {
        return na;
    }

    public void setNa(Float na) {
        this.na = na;
    }

    @Column(name = "cl")
    public Float getCl() {
        return cl;
    }

    public void setCl(Float cl) {
        this.cl = cl;
    }

    @Column(name = "mg")
    public Float getMg() {
        return mg;
    }

    public void setMg(Float mg) {
        this.mg = mg;
    }

    @Column(name = "k")
    public Float getK() {
        return k;
    }

    public void setK(Float k) {
        this.k = k;
    }

    @Column(name = "fe")
    public Float getFe() {
        return fe;
    }

    public void setFe(Float fe) {
        this.fe = fe;
    }

    @Column(name = "cu")
    public Float getCu() {
        return cu;
    }

    public void setCu(Float cu) {
        this.cu = cu;
    }

    @Column(name = "mn")
    public Float getMn() {
        return mn;
    }

    public void setMn(Float mn) {
        this.mn = mn;
    }

    @Column(name = "zn")
    public Float getZn() {
        return zn;
    }

    public void setZn(Float zn) {
        this.zn = zn;
    }

    @Column(name = "se")
    public Float getSe() {
        return se;
    }

    public void setSe(Float se) {
        this.se = se;
    }

    @Column(name = "ve")
    public Float getVe() {
        return ve;
    }

    public void setVe(Float ve) {
        this.ve = ve;
    }

    @Column(name = "vb1")
    public Float getVb1() {
        return vb1;
    }

    public void setVb1(Float vb1) {
        this.vb1 = vb1;
    }

    @Column(name = "vb2")
    public Float getVb2() {
        return vb2;
    }

    public void setVb2(Float vb2) {
        this.vb2 = vb2;
    }

    @Column(name = "fansuan")
    public Float getFansuan() {
        return fansuan;
    }

    public void setFansuan(Float fansuan) {
        this.fansuan = fansuan;
    }

    @Column(name = "yansuan")
    public Float getYansuan() {
        return yansuan;
    }

    public void setYansuan(Float yansuan) {
        this.yansuan = yansuan;
    }

    @Column(name = "sws")
    public Float getSws() {
        return sws;
    }

    public void setSws(Float sws) {
        this.sws = sws;
    }

    @Column(name = "yesuan")
    public Float getYesuan() {
        return yesuan;
    }

    public void setYesuan(Float yesuan) {
        this.yesuan = yesuan;
    }

    @Column(name = "danjian")
    public Float getDanjian() {
        return danjian;
    }

    public void setDanjian(Float danjian) {
        this.danjian = danjian;
    }

    @Column(name = "b6")
    public Float getB6() {
        return b6;
    }

    public void setB6(Float b6) {
        this.b6 = b6;
    }

    @Column(name = "b12")
    public Float getB12() {
        return b12;
    }

    public void setB12(Float b12) {
        this.b12 = b12;
    }

    @Column(name = "yayousuan")
    public Float getYayousuan() {
        return yayousuan;
    }

    public void setYayousuan(Float yayousuan) {
        this.yayousuan = yayousuan;
    }
}
